#ifndef _xpt2046_h
#define _xpt2046_h

#include "head.h"
#include "intrins.h"

sbit DOUT=P3^7;
sbit DIN=P3^4;
sbit CS=P3^5;
sbit DCLK=P3^6;

void xpt2046_writebyte(u8 dat);
u16 xpt2046_readbyte(void);
u16 xpt2046_read_adc_value(u8 cmd);


#endif

